<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="../common.inc" %>    
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<link href="./css/style1.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="./js/form.js"></script>
<script type="text/javascript" language="javascript">
<!--
	function updateSaleStage(){
		window.location.href = "./saleStageSet.do?action=preUpdateSaleStage";
		window.location.target = "main";
	}
-->
</script>
</head>
<body>
	<table class="table_frame">
		<tr>
			<td>
				<table class="table_title1">
					<tr>
						<td class="title_lab" colspan="2">
							<fmt:message key='stage.title.main'/>
						</td>
					</tr>
					<tr>
						<td valign="bottom" class="a_tools" style="padding-left: 3px;padding-top: 4px;">
							<a class="update" href="javascript:updateSaleStage();" title="<fmt:message key='common.button.update'/>" hidefocus="true"><fmt:message key='common.button.update'/></a>
						</td>
						<td></td>
					</tr>
					<tr><td height="2"></td></tr>
				</table>
			</td>
		</tr>
		<tr>
			<td>
				<table class="table_title2">
					<tr>
						<td class="title_lab"><fmt:message key='stage.title.main'/></td>
						<td align="left" width="85%">
							<fmt:message key='stage.lable.avg'/><fmt:message key='common.sign'/>
							${avgSingle.MValue}<fmt:message key='common.lable.yuan'/>
						</td>
					</tr>
					<tr>
						<td colspan="2" valign="top">
							<table class="table_style">
								<tr>
									<td class="title" width="8"></td>
									<td class="title" width="25%"><fmt:message key='stage.lable.saleStage'/></td>
									<td class="title"><fmt:message key='stage.lable.stageDesc'/></td>
									<td class="title" width="10%"><fmt:message key='stage.lable.successRate'/>(%)</td>
								</tr>
								<c:forEach var="saleStage" items="${saleStages}">
								<tr onmouseover="onmousemoveChange(this,'img${saleStage.id}')" onmouseout="onmouseoutChange(this,'img${saleStage.id}')">
									<td height="16" width="8" align="right"><img id="img${saleStage.id}" src="./images/table_sign2.bmp"></td>
									<td>${saleStage.stageName}</td>
									<td align="left">${saleStage.stageDesc}</td>
									<td>${saleStage.successRate}</td>
								</tr>
								</c:forEach>
							</table>
						</td>
					</tr>
				</table>
			</td>
		</tr>
	</table>
</body>
</html>